package org.smartjava.core.raw;

import java.util.Date;

public class RawType {


    public static <T extends Date> T getData(Class<T> t) throws InstantiationException, IllegalAccessException {

        T t1 = t.newInstance();

        return t1;
    }

    public static void main(String[] args) throws InstantiationException, IllegalAccessException {
        java.sql.Date data = getData(java.sql.Date.class);
        System.out.println(data);
    }


}
